package com.flaremars.picker.utils.http.newhttp;

/**
 * Created by FlareMars on 2016/1/28.
 */
public class Result {

    public static final Integer CODE_SUCCESS = 200;
    public static final Integer CODE_FAIL = 210;

    public static final String MSG_SUCCESS = "请求成功";
    public static final String MSG_FAIL = "请求失败";

    private Integer code;

    private String msg;

    private Object data;

    public Result() {
        this(CODE_SUCCESS,MSG_SUCCESS);
    }

    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
